<include file="public@header" />

</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
        <li ><a href="{:url('ShopType/index')}">类别列表</a></li>
        <li class="active"><a href="#">编辑类别</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('ShopType/edit')}" method="post">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                         <div class="form-group">
                            <label  class="col-sm-2 control-label"><span class="form-required">*</span>类别名称</label>
                            <div class="col-md-6 col-sm-10">
                            <input name="id" value="{$info.st_guid}" style='display:none;'>
                                <input type="text" class="form-control" id="input-code" name="type_name" value="{$info.type_name}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label  class="col-sm-2 control-label"><span class="form-required">*</span>代理</label>
                            <div class="col-md-6 col-sm-10">
                                <if condition="$id == 1">
                                    <select name="age_id">
                                        <option value="">请选择</option>
                                        <volist name="ret" id="vo">
                                            <if condition="$info.age_id == $vo.user_id">
                                                <option value="{$vo.user_id}" selected>{$vo.brand_name}</option>
                                             <else />
                                                <option value="{$vo.user_id}">{$vo.brand_name}</option>
                                            </if>
                                        </volist>
                                    </select>
                                    <else />
                                    <input type="hidden" name="age_id" value="{$ret1.user_guid}">{$ret1.brand_name}
                                </if>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="0" >{:lang('SAVE')}</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>